#include<iostream>
using namespace std;

int main(int argc, char *argv[], char *env[]){
    int i=0;
    cout<<"命令行参数："<<endl;
    for(;argv[i];i++){
        cout<<"argv["<<i<<"]:"<<argv[i]<<endl;
    }
    cout<<"环境变量："<<endl;
    for(i=0;env[i];i++){
        cout<<"env["<<i<<"]:"<<env[i]<<endl;
    }

    return 0;
}
